# idf_component_register(SRCS 
#     components/ui_comp_wlan_ssid_info_list.c
#     components/ui_comp.c
#     screens/ui_home_page.c
#     screens/ui_menu_page.c
#     screens/ui_heart_page.c
#     screens/ui_sport_page.c
#     screens/ui_setting_page.c
#     screens/ui_wlan_page.c
#     screens/ui_time_page.c
#     screens/ui_temperature_page.c
#     screens/ui_EDA_page.c
#     screens/ui_OTA_page.c
#     screens/ui_info_page.c
#     screens/ui_msg_info_page.c
#     screens/ui_wlan_scan_pre_page.c
#     screens/ui_wlan_scan_result_page.c
#     screens/ui_wlan_scan_enter_pswd_page.c
#     screens/ui_wlan_scan_enter_done_page.c
#     ui.c
#     components/ui_comp_hook.c
#     ui_helpers.c
#     images/ui_img_bg_png.c
#     images/ui_img_flash_png.c
#     images/ui_img_shoe_png.c
#     images/ui_img_fire_png.c
#     images/ui_img_heart_png.c
#     images/ui_img_temperature_png.c
#     images/ui_img_wifi1_png.c
#     images/ui_img_heartbeat_png.c
#     images/ui_img_running_png.c
#     images/ui_img_thermometer2_png.c
#     images/ui_img_pd2_png.c
#     images/ui_img_gear_png.c
#     images/ui_img_heartbeat2_png.c
#     images/ui_img_history_png.c
#     images/ui_img_wave2_png.c
#     images/ui_img_wave1_png.c
#     images/ui_img_remove_png.c
#     images/ui_img_fire2_png.c
#     images/ui_img_wifi2_png.c
#     images/ui_img_plus_circle_png.c
#     images/ui_img_thermometer1_png.c
#     # images/app_fs_load_list.c
#     #images/ui_img_pd_png.c
#     fonts/ui_font_data.c
#     fonts/ui_font_date2.c
#     fonts/ui_font_date_font.c
#     fonts/ui_font_times.c
#     fonts/ui_font_times2.c
#     INCLUDE_DIRS . images/cover
#     REQUIRES lvgl simple_agent lvgl_esp32_drivers 
#     )

set(COMPONENT_REQUIRES lvgl simple_agent) #lvgl_esp32_drivers

message(STATUS "watch ui base file")
list(APPEND COMPONENT_ADD_INCLUDEDIRS . images/cover)
set(COMPONENT_SRCS ${COMPONENT_SRCS}
components/ui_comp_wlan_ssid_info_list.c
components/ui_comp.c
screens/ui_home_page.c
screens/ui_menu_page.c
screens/ui_heart_page.c
screens/ui_sport_page.c
screens/ui_setting_page.c
screens/ui_wlan_page.c
screens/ui_time_page.c
screens/ui_temperature_page.c
screens/ui_EDA_page.c
screens/ui_OTA_page.c
screens/ui_info_page.c
screens/ui_msg_info_page.c
screens/ui_wlan_scan_pre_page.c
screens/ui_wlan_scan_result_page.c
screens/ui_wlan_scan_enter_pswd_page.c
screens/ui_wlan_scan_enter_done_page.c
screens/ui_device_name_enter_page.c
ui.c
components/ui_comp_hook.c
ui_helpers.c
fonts/ui_font_data.c
fonts/ui_font_date2.c
fonts/ui_font_date_font.c
fonts/ui_font_times.c
fonts/ui_font_times2.c
)

if (CONFIG_USING_IMG_EXT_STORAGE)
message(STATUS "watch ui img using ext storage, like sdcard")
list(APPEND COMPONENT_ADD_INCLUDEDIRS . images/cover)
set(COMPONENT_SRCS ${COMPONENT_SRCS}
images/cover/ui_img_bg_png.c
images/cover/ui_img_flash_png.c
images/cover/ui_img_shoe_png.c
images/cover/ui_img_fire_png.c
images/cover/ui_img_heart_png.c
images/cover/ui_img_temperature_png.c
images/cover/ui_img_wifi1_png.c
images/cover/ui_img_heartbeat_png.c
images/cover/ui_img_running_png.c
images/cover/ui_img_thermometer2_png.c
images/cover/ui_img_pd2_png.c
images/cover/ui_img_gear_png.c
images/cover/ui_img_heartbeat2_png.c
images/cover/ui_img_history_png.c
images/cover/ui_img_wave2_png.c
images/cover/ui_img_wave1_png.c
images/cover/ui_img_remove_png.c
images/cover/ui_img_fire2_png.c
images/cover/ui_img_wifi2_png.c
images/cover/ui_img_plus_circle_png.c
images/cover/ui_img_thermometer1_png.c
images/cover/app_fs_load_list.c
)
else()
message(STATUS "watch ui img include firmware")
list(APPEND COMPONENT_ADD_INCLUDEDIRS . images/cover)
set(COMPONENT_SRCS ${COMPONENT_SRCS}
images/ui_img_bg_png.c
images/ui_img_flash_png.c
images/ui_img_shoe_png.c
images/ui_img_fire_png.c
images/ui_img_heart_png.c
images/ui_img_temperature_png.c
images/ui_img_wifi1_png.c
images/ui_img_heartbeat_png.c
images/ui_img_running_png.c
images/ui_img_thermometer2_png.c
images/ui_img_pd2_png.c
images/ui_img_gear_png.c
images/ui_img_heartbeat2_png.c
images/ui_img_history_png.c
images/ui_img_wave2_png.c
images/ui_img_wave1_png.c
images/ui_img_remove_png.c
images/ui_img_fire2_png.c
images/ui_img_wifi2_png.c
images/ui_img_plus_circle_png.c
images/ui_img_thermometer1_png.c
)
endif()

register_component()
